package com.group12.liuxinpeng.duty.service;

import com.group12.liuxinpeng.duty.entity.SearchDutyEntity;
import com.group12.liuxinpeng.mybatis.entity.PtDutyEntity;
import com.group12.liuxinpeng.mybatis.flexigrid.PadingRstType;
import com.group12.liuxinpeng.mybatis.flexigrid.PagingBean;
import com.group12.liuxinpeng.mybatis.ztree.ZtreeEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DutyService {
    PadingRstType<PtDutyEntity> queryDutyListPage(SearchDutyEntity search, PagingBean paging);

    List<ZtreeEntity> getMenuTree();

    void dutyAdd(PtDutyEntity ptDutyEntity);
    String getRoleIdByName(String roleName);
    String getOrganIdByName(String organName);
    void dutyDelete(String dutyId);
    void dutyUpdate(PtDutyEntity ptDutyEntity);
}
